<template>
    <div class="home-swipe">
        <van-search v-model="search" placeholder="请输入搜索关键词" input-align="center" @search="onSearch" />
    </div>
</template>

<script>
import { Toast } from 'vant'
export default {
    data() {
        return {
            search: '',
        };
    },
    methods: {
        onSearch(val) {
            Toast(val);
        },
    },
}
</script>
    
<style scoped>

</style>